import {createStore} from "redux"
import { StoreAction } from "./model";


const data={
    whichUserChoose:"personal"
}

const store=createStore((state:any=data,action:StoreAction)=>{
    switch (action.type) {
       case "userChoose":
        state.whichUserChoose=action.content
        break
    }
    return state;
})



export default store;